	<div class="column half fl">
		
		<div class="box themed_box">
		<h2 class="box-header"><?php echo $title; ?></h2>

		<div class="box-content">
        <?php echo $this->session->flashdata('message'); ?>
		
        
        <?=form_open_multipart($form['action'],array('name'=>'formtest','id'=>'formtest'));?>
       <!-- <form id="formtest" name="formtest" method="post" enctype="multipart/form-data" action="<?php echo site_url($form['action']); ?>">-->
            <?php if($table['value']<>"") { ?>
            <input type="hidden" name="id" value="<?php echo $table['value']['id']; ?>" />
            <?php } ?>
			
            <label class="form-label required"><?php echo $this->lang->line('no'); ?></label>
			<input <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-job_no" class="form-field width20" name="job_no" type="text"  value="<?php if($table['value']<>"") { echo $table['value']['no']; } ?> " maxlength="50"/>
            
            <label class="form-label required"><?php echo $this->lang->line('batch'); ?></label>
			<input <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-job_b" class="form-field width20" name="batch" type="text"  value="<?php if($table['value']<>"") { echo $table['value']['jo_batch']; } ?> " maxlength="50"/>
            
            <label class="form-label"><?php echo $this->lang->line('customers'); ?></label>
            <input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="customer" class="form-field width70" name="customer" type="text" value="<?php if($table['value']<>"") { echo $table['value']['customer_name']; } ?>" maxlength="100"/>
            
             <?php if($title<>$this->lang->line('view')){ ?> 
            <div id="box-con" class="dialog" title="<?php echo $this->lang->line('users'); ?>">
			    <table class="display" id="tabledata">
            	<thead>
            		<tr>
            			<th><?php echo $this->lang->line('id');?></th>
            			<th><?php echo $this->lang->line('customer_name');?></th>
            			<th><?php echo $this->lang->line('pic');?></th>
                        <th><?php echo $this->lang->line('ta');?></th>
						<th><?php echo $this->lang->line('se');?></th>
						<th><?php echo $this->lang->line('ae');?></th>
                        <th></th>
            		</tr>
            	</thead>
                	<tbody>
                	<?php foreach($table['customers'] as $rec): ?>
                		<tr class="gradeX">
                
                			<td><a href="#" onclick="changeBgr('<?php echo $rec['customer_name'];?>')" class="closer"><?php echo $rec['id'] ?></a></td>
                			<td><?php echo $rec['customer_name'] ?></td>
                			<td><?php echo $rec['pic'] ?></td>
                            <td><?php echo $rec['rev'] ?></td>
							<td><?php echo $rec['rev2'] ?></td>
							<td><?php echo $rec['rev3'] ?></td>
                            <td><a class="button themed closer" href="#" onclick="changeBgr('<?php echo $rec['customer_name'];?>')" ><?php echo $this->lang->line('add_list'); ?></a></td>
                		</tr>
                	<?php endforeach;?>	
                	</tbody>
	           </table>
                <p class="fr">
				<a class="button white">cancel</a>
				<a class="button themed closer">ok</a>
				</p>

            </div>
            <?php } ?>
            
             <?php if($title<>$this->lang->line('view')){ ?> 
            <a class="button themed opener"><?php echo $this->lang->line('search_cust') ?></a>
            <?php } ?>
            
            <label class="form-label"><?php echo $this->lang->line('npwp'); ?></label>
            <input id="npwp"  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> class="form-field width80" name="npwp" type="text" value="<?php if($table['value']<>"") { echo $table['value']['npwp']; } ?>" maxlength="100"/>
            
            <label class="form-label"> <?php echo $this->lang->line('type'); ?> (Click One Item ) </label>
            <p class="radiocheck">
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="type_eu" type="radio" value="Training" name="type" <?php if($table['value']<>"") { if($table['value']['job_type']=='Training') { echo 'checked="checked"';  }  } ?> />
			<label for="type_eu">Training</label>
	
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="type_am" type="radio" value="Seminar" name="type" <?php if($table['value']<>"") { if($table['value']['job_type']=='Seminar') { echo 'checked="checked"';  }  } ?> />
			<label for="type_am">Seminar</label>
			</p>
            
            <label class="form-label"><?php echo $this->lang->line('order'); ?>(Click One Item ) </label>
            <p class="radiocheck">
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="order_eu" type="radio" value="First Order" name="order" <?php if($table['value']<>"") { if($table['value']['order_type']=='First Order') { echo 'checked="checked"';  }  } ?> />
			<label for="order_eu">First Order</label>
	
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="order_am" type="radio" value="Repeat Order" name="order" <?php if($table['value']<>"") { if($table['value']['order_type']=='Repeat Order') { echo 'checked="checked"';  }  } ?> />
			<label for="order_am">Repeat Order</label>
			</p>
            
            <label class="form-label"><?php echo $this->lang->line('incoming'); ?> (Click One Item ) </label>
            
            <p class="radiocheck">
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="incom_eu" type="radio" value="Incoming" name="coming" <?php if($table['value']<>"") { if($table['value']['coming_type']=='Incoming') { echo 'checked="checked"';  }  } ?> />
			<label for="incom_eu">Incoming</label>
	
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="incom_am" type="radio" value="Non Incoming" name="coming" <?php if($table['value']<>"") { if($table['value']['coming_type']=='Non Incoming') { echo 'checked="checked"';  }  } ?> />
			<label  for="incom_am">Non Incoming</label>
			</p>
            
            <label class="form-label"><?php echo $this->lang->line('products'); ?></label>
            
             <?php if($title<>$this->lang->line('view')){ ?> 
			<input type="radio" name="c_product" value="p1" <?php if($table['value']=="") { ?> checked="checked" <?php } else { if($table['value']['product_id']<>0) { echo 'checked="checked"'; }  } ?>  />
            <select  class="form-field width60" id="select" name="product" title="Select a category">
                    <option value="<?php if($table['value']<>"") { echo $table['value']['product_id']; } ?>" ><?php if($table['value']<>"") { echo $table['value']['product_name']; } ?></option>
    			
    				<?php foreach($table['products'] as $rowproduct): ?>
                    <option onclick="changeInvest('<?php echo $rowproduct['invest'];?>')" value="<?php echo $rowproduct['id']; ?>"><?php echo $rowproduct['product_name'].'-'.$rowproduct['product_time'].'-'.$rowproduct['invest']; ?></option>
                <?php endforeach;?>
            </select>
			<br/>
			<input type="radio" name="c_product" value="p2" <?php if($table['value']=="") { ?>  <?php } else { if($table['value']['product_id']==0) { echo 'checked="checked"'; }  } ?> />
			<input class="form-field width40"  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="prod_eu" type="text"  name="prod"  value="<?php if($table['value']<>"") { echo $table['value']['other_product']; } else { echo 'Other'; } ?>" />
			<input style="text-align:right" class="form-field width20"  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="price" type="text"  name="price"  value="<?php if($table['value']<>"") { echo $table['value']['other_price']; } else { echo '0'; } ?>" />
			<input class="form-field width20"  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="prod_eu" type="text"  name="periode"  value="<?php if($table['value']<>"") { echo $table['value']['other_periode']; } else { echo '2 Jam'; } ?>" />
			
            <?php } else { ?>
            <input class="form-field width80"  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="prod_eu" type="text"  name="product"  value="<?php if($table['value']<>"") { echo $table['value']['product_name']; } ?>" />
            <?php } ?>
            <br />
            <label class="form-label"><?php echo $this->lang->line('banks'); ?></label>
            <?php if($title<>$this->lang->line('view')){ ?> 
            <select class="form-field width60" id="select" name="bank" title="Select a category">
                    <option value="<?php if($table['value']<>"") { echo $table['value']['bank_id']; } ?>" ><?php if($table['value']<>"") { echo $table['value']['bank_name']; } ?></option>
    			<?php foreach($table['banks'] as $rowsource): ?>
                    <option value="<?php echo $rowsource['id']; ?>"><?php echo $rowsource['bank_name']; ?></option>
                <?php endforeach;?>
            </select>
            <?php } else { ?>
            <input class="form-field width30"  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="prod_eu" type="text"  name="product"  value="<?php if($table['value']<>"") { echo $table['value']['bank_name']; } ?>" />
            <?php } ?>
            
            <label class="form-label"><?php echo $this->lang->line('date'); ?></label>
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> name="date_in" class="form-field datepicker" type="text" value="<?php if($table['value']<>"") { echo $table['value']['date_in']; } ?>" />
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> name="date_out" class="form-field datepicker" type="text" value="<?php if($table['value']<>"") { echo $table['value']['date_out']; } ?>" />
			

			<label class="form-label required width60"><?php echo $this->lang->line('sdm_contact').'/'.$this->lang->line('sdm_pos'); ?></label>
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-pic" class="form-field width60" name="sdm_contact" type="text" value="<?php if($table['value']<>"") { echo $table['value']['sdm_contact']; } ?>" maxlength="100"/>
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-picpos" class="form-field width30" name="sdm_pos" type="text" value="<?php if($table['value']<>"") { echo $table['value']['sdm_pos']; } ?>" maxlength="100"/>
			
			<!--
            <label class="form-label required"><?php echo $this->lang->line('sdm_tlp'); ?></label>
			-->
			<!--
            <label class="form-label required"><?php echo $this->lang->line('sdm_hp'); ?></label>
			<input id="form-pic" class="form-field width60" name="sdm_hp" type="text" value="<?php if($table['value']<>"") { echo $table['value']['sdm_hp']; } ?>" maxlength="100"/>
			-->
            
            <label class="form-label required width60"><?php echo $this->lang->line('sdm_tlp').'/'.$this->lang->line('sdm_fax'); ?></label>
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-pic" class="form-field width60" name="sdm_tlp" type="text" value="<?php if($table['value']<>"") { echo $table['value']['sdm_telp']; } ?>" maxlength="100"/>
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-pic" class="form-field width30" name="sdm_fax" type="text" value="<?php if($table['value']<>"") { echo $table['value']['sdm_fax']; } ?>" maxlength="100"/>
			
            
            <!--<label class="form-label required"><?php echo $this->lang->line('sdm_pos'); ?></label>
			-->
			
            <label class="form-label required width60"><?php echo $this->lang->line('tek_contact').'/'.$this->lang->line('tek_pos'); ?></label>
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-pic" class="form-field width60" name="tek_contact" type="text" value="<?php if($table['value']<>"") { echo $table['value']['technic_contact']; } ?>" maxlength="100"/>
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-picpos" class="form-field width30" name="tek_pos" type="text" value="<?php if($table['value']<>"") { echo $table['value']['technic_pos']; } ?>" maxlength="100"/>
			
			
            <label class="form-label required width60"><?php echo $this->lang->line('tek_tlp').'/'.$this->lang->line('tek_fax'); ?></label>
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-pic" class="form-field width60" name="tek_tlp" type="text" value="<?php if($table['value']<>"") { echo $table['value']['technic_telp']; } ?>" maxlength="100"/>
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-pic" class="form-field width30" name="tek_fax" type="text" value="<?php if($table['value']<>"") { echo $table['value']['technic_fax']; } ?>" maxlength="100"/>
			
			<!--
            <label class="form-label required"><?php echo $this->lang->line('tek_hp'); ?></label>
			<input id="form-pic" class="form-field width60" name="tek_hp" type="text" value="<?php if($table['value']<>"") { echo $table['value']['technic_hp']; } ?>" maxlength="100"/>
			-->
            
            <!--<label class="form-label required"><?php echo $this->lang->line('tek_fax'); ?></label>
			-->
            
            <!--<label class="form-label required"><?php echo $this->lang->line('tek_pos'); ?></label>
			-->
            <label class="form-label required width60"><?php echo $this->lang->line('acc_contact').'/'.$this->lang->line('acc_pos'); ?></label>
			<input   <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-pic" class="form-field width60" name="acc_contact" type="text" value="<?php if($table['value']<>"") { echo $table['value']['acc_contact']; } ?>" maxlength="100"/>
			<input   <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-picpos" class="form-field width30" name="acc_pos" type="text" value="<?php if($table['value']<>"") { echo $table['value']['acc_pos']; } ?>" maxlength="100"/>
			
			
            <label class="form-label required"><?php echo $this->lang->line('acc_tlp').'/'.$this->lang->line('acc_fax'); ?></label>
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-pic" class="form-field width60" name="acc_tlp" type="text" value="<?php if($table['value']<>"") { echo $table['value']['acc_telp']; } ?>" maxlength="100"/>
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-pic" class="form-field width30" name="acc_fax" type="text" value="<?php if($table['value']<>"") { echo $table['value']['acc_fax']; } ?>" maxlength="100"/>
			
			
			<!--
            <label class="form-label required"><?php echo $this->lang->line('acc_hp'); ?></label>
			<input id="form-pic" class="form-field width60" name="acc_hp" type="text" value="<?php if($table['value']<>"") { echo $table['value']['acc_hp']; } ?>" maxlength="100"/>
			-->
            <!--
            <label class="form-label required"><?php echo $this->lang->line('acc_fax'); ?></label>
			
            
            <label class="form-label required"><?php echo $this->lang->line('acc_pos'); ?></label>
			-->
            <label class="form-label"><?php echo $this->lang->line('facilitas'); ?></label>
              <?php //if($table['value']==""): ?>
		      <div class="radiocheck">
              <?php $x=1; ?>
              <?php foreach($table['facilitas'] as $recfac):?>
    			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> name="fac[]" type="checkbox" id="<?php echo 'fac_'.$x; ?>" value="<?php echo $recfac['id']; ?>" <?php if($table['value']<>""): foreach($table['fac'] as $facs){ if($facs['fac_id']==$recfac['id']) { ?> checked="checked" <?php } } endif;?> />
                <label for="<?php echo 'fac_'.$x; ?>"><?php echo $recfac['fac_name']; ?></label> 
              <?php $x++;endforeach; ?>  
              </div>
    		<br/>
            <?php //endif; ?>
            
            <!--
            <label class="form-label required"><?php echo $this->lang->line('disc').'/'.$this->lang->line('ppn').'/'.$this->lang->line('invest'); ?></label>
			<input id="form-pic2" class="form-field width10" name="disc" type="text" value="<?php if($table['value']<>"") { echo $table['value']['discount']; } ?>" maxlength="100"/>
			.%
			
			<input name="ppn" type="checkbox" onclick="ceklist()" <?php if($table['value']<>""): if($table['value']<>0): ?> checked="checked" <?php endif;endif; ?> />
			Rp.
			<input id="form-picpos" class="form-field width30" name="invest" type="text" value="<?php if($table['value']<>"") { echo $table['value']['total']; } ?>" maxlength="100"/>
	        -->
            <!--<label class="form-label required"><?php echo $this->lang->line('ppn'); ?></label>
			<input id="form-pic2" class="form-field width10" name="disc" type="text" value="<?php if($table['value']<>"") { echo $table['value']['discount']; } ?>" maxlength="100"/>
			-->
            <!--<label class="form-label required"><?php echo $this->lang->line('pph'); ?></label>
			<input id="form-tlp" class="form-field width1" name="pph" type="text" value="<?php if($table['value']<>"") { echo $table['value']['pph']; } ?>" maxlength="100"/>
			%
            -->
            <!--<label class="form-label"><?php echo $this->lang->line('date'); ?></label>
			<input name="date" class="form-field datepicker" type="text" value="<?php if($table['value']<>"") { echo $table['value']['date_posting']; } ?>" />
			-->
            
            <label class="form-label"><?php echo $this->lang->line('invest'); ?></label>
            Rp.
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-invest" class="form-field width30" name="invest" type="text" value="<?php if($table['value']<>"") { echo $table['value']['invest']; } ?>" maxlength="100"/>
            
            <label class="form-label required"><?php echo $this->lang->line('ppn'); ?></label>
            <p class="radiocheck">
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="ppn_eu" type="checkbox" value="10" name="ppn" <?php if($table['value']<>""): ?>  <?php if($table['value']['ppn']=="10"):?> checked="checked" <?php endif;?>    <?php endif;?> />
			<label for="ppn_eu">PPN</label>

			</p>
            
            <label class="form-label"><?php echo $this->lang->line('disc'); ?></label>
            Rp.
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-discount"  class="form-field width30" name="discount" type="text" value="<?php if($table['value']<>"") { echo $table['value']['discount']; } else { echo '0'; } ?>" maxlength="100"/>
            
            <label class="form-label"><?php echo $this->lang->line('total'); ?></label>
             <?php if($title<>$this->lang->line('view')){ ?> 
            <a onclick="changeTotal()" class="button themed"><?php echo $this->lang->line('calc'); ?></a>
            <?php } ?>
            Rp.
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-total"  class="form-field width30" name="total" type="text" value="<?php if($table['value']<>"") { echo $table['value']['total']; } ?>" maxlength="100"/>
            
            <label class="form-label"><?php echo $this->lang->line('date_dp'); ?> / <?php echo $this->lang->line('date_pay'); ?></label>
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> name="date_dp" class="form-field datepicker" type="text" value="<?php if($table['value']<>"") { echo $table['value']['date_dp']; } ?>" />
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> name="date_pay" class="form-field datepicker" type="text" value="<?php if($table['value']<>"") { echo $table['value']['date_payment']; } ?>" />
			
            <label class="form-label required"><?php echo $this->lang->line('tp'); ?></label>
			<input <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-job_tp" class="form-field width10" name="tp" type="text"  value="<?php if($table['value']<>"") { echo $table['value']['human_total']; } ?> " maxlength="50"/>
            
            <label class="form-label"><?php echo $this->lang->line('participant'); ?></label>
              <?php //if($table['value']==""): ?>
		      <div class="radiocheck">
              <?php $x=1; ?>
              <?php foreach($table['participants'] as $recp):?>
    			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> name="p[]" type="checkbox" id="<?php echo 'p_'.$x; ?>" value="<?php echo $recp['id']; ?>" <?php if($table['value']<>""): foreach($table['par'] as $ps){ if($ps['pos_id']==$recp['id']) { ?> checked="checked" <?php } } endif;?> />
                <label for="<?php echo 'p_'.$x; ?>"><?php echo $recp['pos_name']; ?></label> 
              <?php $x++;endforeach; ?>  
              </div>
              
            <label class="form-label required"><?php echo $this->lang->line('hour'); ?></label>
			<input <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-job_hr" class="form-field width5" name="hr11" type="text"  value="<?php if($table['value']<>"") { echo substr($table['value']['hour_one'],0,2); } else { echo '09'; } ?> " maxlength="2"/> :
            <input <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-job_hr" class="form-field width5" name="hr12" type="text"  value="<?php if($table['value']<>"") { echo substr($table['value']['hour_one'],3,2); } else { echo '00'; } ?> " maxlength="2"/>
            
            To
            
            <input <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-job_hr" class="form-field width5" name="hr21" type="text"  value="<?php if($table['value']<>"") { echo substr($table['value']['hour_two'],0,2); } else { echo '12'; } ?> " maxlength="2"/> :
            <input <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-job_hr" class="form-field width5" name="hr22" type="text"  value="<?php if($table['value']<>"") { echo substr($table['value']['hour_two'],3,2); } else { echo '00'; } ?> " maxlength="2"/>
            
            <label class="form-label required"><?php echo $this->lang->line('trainer'); ?></label>
			<input <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-job_trainer" class="form-field width10" name="trainer" type="text"  value="<?php if($table['value']<>"") { echo $table['value']['trainer']; } ?> " maxlength="50"/>
            
            
			<label class="form-label"><?php echo $this->lang->line('location'); ?></label>
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-location" class="form-field width60" name="location" type="text" value="<?php if($table['value']<>"") { echo $table['value']['location']; } ?>" maxlength="100"/>
			
            <label class="form-label"><?php echo $this->lang->line('information'); ?></label>
			<input  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-" class="form-field width60" name="information" type="text" value="<?php if($table['value']<>"") { echo $table['value']['information']; } ?>" maxlength="100"/>
		        
            <label class="form-label"><?='MOM'; ?></label>
			<textarea  <?php if($title==$this->lang->line('view')){ ?> disabled="disabled" <?php } ?> id="form-message" class="form-field width90" name="message" cols="" rows="2"><?php if($table['value']<>"") { echo $table['value']['message']; } ?></textarea>
	        <?php if($title<>$this->lang->line('view')){ ?> 
            
            <label class="form-label required"><?php echo $this->lang->line('trr'); ?></label>
			<input type="file" name="userfile" size="20" id="form-job_file" class="form-field width60" />
			
			<input id="reset" class="button red" type="button" value="Reset" name="reset" />
			<input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('save');?>" name="save" />
            <?php } ?>
		</form>
		</div>

		</div>	
			
	</div>

	
	<div class="column half fr">
		<div class="box themed_box">
		<h2 class="box-header-new"></h2>
		<h2 class="box-header"><?php echo $this->lang->line('products'); ?></h2>
			
			<div class="box-content box-table">
			
            <?php echo $this->session->flashdata('message2'); ?>
            
			<table class="tablebox">
				<thead class="table-header">
					<tr>
						<th><?php echo $this->lang->line('product_name'); ?></th>
                        <th class="width60"><?php echo $this->lang->line('product_time'); ?></th>
						<th><?php echo $this->lang->line('invest'); ?></th>
						<th class="tc"></th>
					</tr>
				</thead>
				
				<tbody class="openable-tbody">
                    <?php $i=1; ?>
					<?php foreach($table['products'] as $rec): ?>
                    <?php if($i % 2 == 0): 
                            $zebra="odd";
                          else: 
                            $zebra="even";
                          endif;
                    ?>
                    <tr class="<?php echo $zebra;?>">
						<td>
							<h5><?php echo $rec['product_name']; ?></h5>
		
						</td>
                        <td >
							<?php echo $rec['product_time']; ?>
		
						</td>
						<td class="tc">
							<?php echo number_format($rec['invest'],2); ?>
						</td>
						<td class="tc">
                        <?php if($title<>$this->lang->line('view')){ ?> 
                        <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
						<a class="button themed openable"><span class="icon_single extend"></span></a>
                        <?php endif;?>
                        <?php } ?>
						</td>
					</tr>
                    
					<tr class="odd openable-tr">
						<?php echo form_open($this->config->item('product_upd')); ?>
                        <td colspan="4">
							<div class="fl typo">
							<b><?php $this->config->item('products'); ?></b>
							<p class="p_justify">
                              <input id="form-id" name="id" type="hidden" value="<?php echo $rec['id']; ?>" />
                              <label><?php echo $this->lang->line('products'); ?></label>
							  <input id="form-name" class="form-field width90" name="name" type="text" value="<?php echo $rec['product_name']; ?>" maxlength="200"/>
							</p>
							</div>
                            
                            <div class="s_3"></div>

							<div class="fl typo">
								<b><?php echo $this->lang->line('product_time'); ?>: </b>
								<input id="form-time" class="form-field width30" name="time" type="text" value="<?php echo $rec['product_time']; ?>" maxlength="200"/> 
							</div>

							
							<div class="s_3"></div>
							
							<div class="fl typo">
								<b><?php echo $this->lang->line('invest'); ?>: </b>
								<input id="form-time" class="form-field width60" name="invest" type="text" value="<?php echo $rec['invest']; ?>" maxlength="200"/>
							</div>
						
							<div class="fr">
								 <input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('delete');?>" name="delete" />
								 <input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('save');?>" name="save" />
							</div>
						<?php echo form_close();?>
						<div class="clear"></div>
						</td>
					</tr>
                    <?php $i++; endforeach;?>
					
                    <tr>
						<td class="width80">
							<h5><?php echo $this->lang->line('add'); ?></h5>
		
						</td>
						<td class="tc">

							
						</td>
                        <td class="tc">

							
						</td>
						<td class="tc">
                        <?php if($title<>$this->lang->line('view')){ ?> 
                        <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
						<a class="button themed openable"><span class="icon_single extend"></span></a>
                        <?php endif;?>
                        <?php } ?>
						</td>
					</tr>
                    
					<tr class="odd openable-tr">
						<td colspan="4">
                        <?php echo form_open($this->config->item('product_save')); ?>
							<div class="fl typo">
							<b><?php $this->config->item('products'); ?></b>
							<p class="p_justify">
                              <label><?php echo $this->lang->line('products') ?></label>
							  <input id="form-name" class="form-field width90" name="name" type="text" value="" maxlength="200"/>
							</p>
							</div>
                            
                            <div class="s_3"></div>
                            
                            <div class="fl typo">
							<b><?php $this->config->item('pos'); ?></b>
							<p class="p_justify">
                              <label><?php echo $this->lang->line('product_time') ?></label>
							  <input id="form-name" class="form-field width30" name="time" type="text" value="" maxlength="200"/>
							</p>
							</div>

							<div class="s_3"></div>
                            
                            <div class="fl typo">
							<b><?php $this->config->item('pos'); ?></b>
							<p class="p_justify">
                              <label><?php echo $this->lang->line('invest') ?></label>
							  <input id="form-name" class="form-field width60" name="invest" type="text" value="" maxlength="200"/>
							</p>
							</div>
							
												
							<div class="fr">
								<input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('save');?>" name="save" />
							</div>
						
						<div class="clear"></div>
                        <?php echo form_close();?>
						</td>
					</tr>
                    
				</tbody>
			</table>
            <!--
				<ul class="pagination">
				<li><a class="button white" href="#">previous</a></li>

				<li><a class="button white" href="#">1</a></li>
				<li><a class="button white" href="#">2</a></li>
				<li><a class="button white active" href="#">3</a></li>
				<li><a class="button white" href="#">4</a></li>
				<li><a class="button white" href="#">5</a></li>
				<li><a class="button white" href="#">6</a></li>

				<li><a class="button white" href="#">next</a></li>
				</ul>
              -->  
			</div>
            
            
		</div>
        
        <div class="box themed_box">
		<h2 class="box-header-new"></h2>
		<h2 class="box-header"><?php echo $this->lang->line('banks'); ?></h2>
			
			<div class="box-content box-table">
			
            <?php echo $this->session->flashdata('message3'); ?>
            
			<table class="tablebox">
				<thead class="table-header">
					<tr>
						<th><?php echo $this->lang->line('bank_name'); ?></th>
						<th><?php echo $this->lang->line('status'); ?></th>
						<th class="tc"></th>
					</tr>
				</thead>
				
				<tbody class="openable-tbody">
                    <?php $i=1; ?>
					<?php foreach($table['banks'] as $rec): ?>
                    <?php if($i % 2 == 0): 
                            $zebra="odd";
                          else: 
                            $zebra="even";
                          endif;
                    ?>
                    <tr class="<?php echo $zebra;?>">
						<td class="width80">
							<h5><?php echo $rec['bank_name']; ?></h5>
		
						</td>
						<td class="tc">

							<span class="bullet bullet-green"></span>
						</td>
						<td class="tc">
                        <?php if($title<>$this->lang->line('view')){ ?> 
                        <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
						<a class="button themed openable"><span class="icon_single extend"></span></a>
                        <?php endif;?>
                        <?php } ?>
						</td>
					</tr>
                    
					<tr class="odd openable-tr">
						<?php echo form_open($this->config->item('bank_update')); ?>
                        <td colspan="4">
							<div class="fl typo">
							<b><?php $this->config->item('banks'); ?></b>
							<p class="p_justify">
                              <input id="form-id" name="id" type="hidden" value="<?php echo $rec['id']; ?>" />
							  <input id="form-name" class="form-field width150" name="name" type="text" value="<?php echo $rec['bank_name']; ?>" maxlength="200"/>
							</p>
							</div>

							<div class="fl typo">
								<b>Published by: </b>
								<a href="#"><?php echo $rec['user_stamp']; ?></a> 
							</div>

							
							<div class="s_3"></div>
							
							<div class="fl typo">
								<b>Published date: </b>
                                <?php if($rec['date_stamp']=='0000-00-00'): ?>
                                    -
                                <?php else: ?>
								<a href="#"><?php echo $rec['date_stamp']; ?></a>
                                <?php endif; ?> 
							</div>
						
							<div class="fr">
								 <input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('delete');?>" name="delete" />
								 <input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('save');?>" name="save" />
							</div>
						<?php echo form_close();?>
						<div class="clear"></div>
						</td>
					</tr>
                    <?php $i++; endforeach;?>
					
                    <tr>
						<td class="width80">
							<h5><?php echo $this->lang->line('add'); ?></h5>
		
						</td>
						<td class="tc">

							
						</td>
						<td class="tc">
                        <?php if($title<>$this->lang->line('view')){ ?> 
                        <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
						<a class="button themed openable"><span class="icon_single extend"></span></a>
                        <?php endif;?>
                        <?php } ?>
						</td>
					</tr>
                    
					<tr class="odd openable-tr">
						<td colspan="4">
                        <?php echo form_open($this->config->item('bank_save')); ?>
							<div class="fl typo">
							<b><?php $this->config->item('banks'); ?></b>
							<p class="p_justify">
							  <input id="form-name" class="form-field width150" name="name" type="text" value="" maxlength="200"/>
							</p>
							</div>

							<div class="s_3"></div>
							
												
							<div class="fr">
								<input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('save');?>" name="save" />
							</div>
						
						<div class="clear"></div>
                        <?php echo form_close();?>
						</td>
					</tr>
                    
				</tbody>
			</table>
            <!--
				<ul class="pagination">
				<li><a class="button white" href="#">previous</a></li>

				<li><a class="button white" href="#">1</a></li>
				<li><a class="button white" href="#">2</a></li>
				<li><a class="button white active" href="#">3</a></li>
				<li><a class="button white" href="#">4</a></li>
				<li><a class="button white" href="#">5</a></li>
				<li><a class="button white" href="#">6</a></li>

				<li><a class="button white" href="#">next</a></li>
				</ul>
              -->  
			</div>
		</div>
		
		
		
		<div class="box themed_box">
		<h2 class="box-header-new"></h2>
		<h2 class="box-header"><?='Participants';?></h2>
			
			<div class="box-content box-table">
			
            <?php echo $this->session->flashdata('message4'); ?>
            
			<table class="tablebox">
				<thead class="table-header">
					<tr>
						<th><?php echo 'participants'; ?></th>
						<th><?php echo $this->lang->line('status'); ?></th>
						<th class="tc"></th>
					</tr>
				</thead>
				
				<tbody class="openable-tbody">
                    <?php $i=1; ?>
					<?php foreach($table['participants'] as $rec): ?>
                    <?php if($i % 2 == 0): 
                            $zebra="odd";
                          else: 
                            $zebra="even";
                          endif;
                    ?>
                    <tr class="<?php echo $zebra;?>">
						<td class="width80">
							<h5><?php echo $rec['pos_name']; ?></h5>
		
						</td>
						<td class="tc">

							<span class="bullet bullet-green"></span>
						</td>
						<td class="tc">
                        <?php if($title<>$this->lang->line('view')){ ?> 
                        <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
						<a class="button themed openable"><span class="icon_single extend"></span></a>
                        <?php endif;?>
                        <?php } ?>
						</td>
					</tr>
                    
					<tr class="odd openable-tr">
						<?php echo form_open($this->config->item('participant_update')); ?>
                        <td colspan="4">
							<div class="fl typo">
							<b><?php $this->config->item('participant'); ?></b>
							<p class="p_justify">
                              <input id="form-id" name="id" type="hidden" value="<?php echo $rec['id']; ?>" />
							  <input id="form-name" class="form-field width150" name="name" type="text" value="<?php echo $rec['pos_name']; ?>" maxlength="200"/>
							</p>
							</div>

							<div class="fl typo">
								<b>Published by: </b>
								<a href="#"><?php echo $rec['user_stamp']; ?></a> 
							</div>

							
							<div class="s_3"></div>
							
							<div class="fl typo">
								<b>Published date: </b>
                                <?php if($rec['date_stamp']=='0000-00-00'): ?>
                                    -
                                <?php else: ?>
								<a href="#"><?php echo $rec['date_stamp']; ?></a>
                                <?php endif; ?> 
							</div>
						
							<div class="fr">
								 <input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('delete');?>" name="delete" />
								 <input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('save');?>" name="save" />
							</div>
						<?php echo form_close();?>
						<div class="clear"></div>
						</td>
					</tr>
                    <?php $i++; endforeach;?>
					
                    <tr>
						<td class="width80">
							<h5><?php echo $this->lang->line('add'); ?></h5>
		
						</td>
						<td class="tc">

							
						</td>
						<td class="tc">
                        <?php if($title<>$this->lang->line('view')){ ?> 
                        <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
						<a class="button themed openable"><span class="icon_single extend"></span></a>
                        <?php endif;?>
                        <?php } ?>
						</td>
					</tr>
                    
					<tr class="odd openable-tr">
						<td colspan="4">
                        <?php echo form_open($this->config->item('participant_save')); ?>
							<div class="fl typo">
							<b><?php $this->config->item('participant'); ?></b>
							<p class="p_justify">
							  <input id="form-name" class="form-field width150" name="name" type="text" value="" maxlength="200"/>
							</p>
							</div>

							<div class="s_3"></div>
							
												
							<div class="fr">
								<input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('save');?>" name="save" />
							</div>
						
						<div class="clear"></div>
                        <?php echo form_close();?>
						</td>
					</tr>
                    
				</tbody>
			</table>
            <!--
				<ul class="pagination">
				<li><a class="button white" href="#">previous</a></li>

				<li><a class="button white" href="#">1</a></li>
				<li><a class="button white" href="#">2</a></li>
				<li><a class="button white active" href="#">3</a></li>
				<li><a class="button white" href="#">4</a></li>
				<li><a class="button white" href="#">5</a></li>
				<li><a class="button white" href="#">6</a></li>

				<li><a class="button white" href="#">next</a></li>
				</ul>
              -->  
			</div>
		</div>
        
        
        <!--
        <div class="box themed_box">
		<h2 class="box-header-new"></h2>
		<h2 class="box-header"><?php echo $this->lang->line('facilitas'); ?></h2>
			
			<div class="box-content box-table">
			
            <?php echo $this->session->flashdata('message4'); ?>
            
			<table class="tablebox">
		<thead class="table-header">
		<tr>
			<th class="first tc"><?php echo $this->lang->line('id'); ?></th>
			<th><?php echo $this->lang->line('fac_name'); ?></th>
		</tr>
		</thead>
		<tbody>
            <?php $i=1; ?>
					<?php foreach($table['facilitas'] as $rec): ?>
                    <?php if($i % 2 == 0): 
                            $zebra="odd";
                          else: 
                            $zebra="even";
                          endif;
            ?>
			<tr class="<?php echo $zebra; ?>">
				<td class=" first tc"><?php echo $rec['id']; ?></td>
				<td><?php echo $rec['fac_name']; ?></td>
			</tr>
            <?php
                        $i++;
                        endforeach;
            ?>	
				
		</tbody>
		</table>
		<ul class="pagination">
		<li><a class="button white" href="#">previous</a></li>

		<li><a class="button white" href="#">1</a></li>
		<li><a class="button white" href="#">2</a></li>
		<li><a class="button white active" href="#">3</a></li>
		<li><a class="button white" href="#">4</a></li>
		<li><a class="button white" href="#">5</a></li>
		<li><a class="button white" href="#">6</a></li>

		<li><a class="button white" href="#">next</a></li>
		</ul>  
        
			</div>
		</div>
        
        -->
        
        			
	</div>
    
<script type="text/javascript">
    function changeBgr(isi) {
    document.formtest.customer.value = isi;
    document.getElementById('box-con').style.display = 'none';
    }
	function changeInvest(isi) {
    document.formtest.invest.value = isi;
    document.formtest.total.value = isi;
    }
    
    function changeTotal() {
    var total,ppn,discount;
    if(document.formtest.ppn.checked==true){
        ppn=10;
    }else{
        ppn=0;
    }
    total =parseFloat(document.formtest.invest.value) + (parseFloat(document.formtest.invest.value ) * ppn / 100 )
    total =parseFloat(total) - parseFloat(document.formtest.discount.value) 
    document.formtest.total.value = total;
    }
    
	function ceklist() {
    document.formtest.total.value = parseFloat(document.formtest.invest.value) + (parseFloat(document.formtest.invest.value) * (10/100));
    }
	
	function unceklist() {
    document.formtest.total.value = parseFloat(document.formtest.invest.value) -  parseFloat(document.formtest.discount.value);
    }
    
    function discount(){
        document.formtest.total.value = parseFloat(document.formtest.invest.value) -  parseFloat(document.formtest.discount.value);
    }
 	
</script>    